<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link rel="stylesheet" href="popup.css" />
	<title>TOKEN LOGIN</title>
</head>
<body class="preload">
	<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position: absolute; width: 0; height: 0">
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" id="github">
			<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z" />
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" id="tokenkey">
			<path d="M3.5 11.5a3.5 3.5 0 1 1 3.163-5H14L15.5 8 14 9.5l-1-1-1 1-1-1-1 1-1-1-1 1H6.663a3.5 3.5 0 0 1-3.163 2zM2.5 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/>
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" id="cross">
			<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z" />
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" id="group">
			<path d="M9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.825a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3zm-8.322.12C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139z" />
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" id="configure">
			<path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z" />
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" id="accountlogo">
			<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z" />
			<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z" />
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" id="discord">
			<path d="M6.552 6.712c-.456 0-.816.4-.816.888s.368.888.816.888c.456 0 .816-.4.816-.888.008-.488-.36-.888-.816-.888zm2.92 0c-.456 0-.816.4-.816.888s.368.888.816.888c.456 0 .816-.4.816-.888s-.36-.888-.816-.888z" />
			<path d="M13.36 0H2.64C1.736 0 1 .736 1 1.648v10.816c0 .912.736 1.648 1.64 1.648h9.072l-.424-1.48 1.024.952.968.896L15 16V1.648C15 .736 14.264 0 13.36 0zm-3.088 10.448s-.288-.344-.528-.648c1.048-.296 1.448-.952 1.448-.952-.328.216-.64.368-.92.472-.4.168-.784.28-1.16.344a5.604 5.604 0 0 1-2.072-.008 6.716 6.716 0 0 1-1.176-.344 4.688 4.688 0 0 1-.584-.272c-.024-.016-.048-.024-.072-.04-.016-.008-.024-.016-.032-.024-.144-.08-.224-.136-.224-.136s.384.64 1.4.944c-.24.304-.536.664-.536.664-1.768-.056-2.44-1.216-2.44-1.216 0-2.576 1.152-4.664 1.152-4.664 1.152-.864 2.248-.84 2.248-.84l.08.096c-1.44.416-2.104 1.048-2.104 1.048s.176-.096.472-.232c.856-.376 1.536-.48 1.816-.504.048-.008.088-.016.136-.016a6.521 6.521 0 0 1 4.024.752s-.632-.6-1.992-1.016l.112-.128s1.096-.024 2.248.84c0 0 1.152 2.088 1.152 4.664 0 0-.68 1.16-2.448 1.216z" />
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" id="crossmodal">
			<path d="M18.4 4L12 10.4L5.6 4L4 5.6L10.4 12L4 18.4L5.6 20L12 13.6L18.4 20L20 18.4L13.6 12L20 5.6L18.4 4Z" />
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" id="heyuser">
			<g fill="none" fill-rule="evenodd"><path fill="currentColor" fill-rule="nonzero" d="M0.5,0 L0.5,1.5 C0.5,5.65 2.71,9.28 6,11.3 L6,16 L21,16 L21,14 C21,11.34 15.67,10 13,10 C13,10 12.83,10 12.75,10 C8,10 4,6 4,1.5 L4,0 L0.5,0 Z M13,0 C10.790861,0 9,1.790861 9,4 C9,6.209139 10.790861,8 13,8 C15.209139,8 17,6.209139 17,4 C17,1.790861 15.209139,0 13,0 Z" transform="translate(2 4)"></path><path d="M0,0 L24,0 L24,24 L0,24 L0,0 Z M0,0 L24,0 L24,24 L0,24 L0,0 Z M0,0 L24,0 L24,24 L0,24 L0,0 Z"></path></g>
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" id="import">
			<path fill-rule="evenodd" d="M8 12a.5.5 0 0 0 .5-.5V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V11.5a.5.5 0 0 0 .5.5z"></path>
		</symbol>
		<symbol xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" id="export">
			<path fill-rule="evenodd" d="M8 4a.5.5 0 0 1 .5.5v5.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L7.5 10.293V4.5A.5.5 0 0 1 8 4z"></path>
		</symbol>
	</svg>
	<div id="top-line">
		<div style="display: flex; align-items: center; border-right: 1px solid hsl(0 0% 100% / 0.3)">
			<img style="height: 64px" src="../../icons/128.png" />
			<h4 style="margin-left: 8px;">TOKEN LOGIN</h4>
		</div>
		<div style="display: flex; align-items: center; justify-content: center">
			<svg class="quickaccess" href="https://github.com/WiLuX-Source/Discord-Token-Login">
				<use xlink:href="#github"></use>
			</svg>
			<svg class="quickaccess" href="https://discord.com/login" style="padding-top: 2px">
				<use xlink:href="#discord"></use>
			</svg>
		</div>
	</div>
	<div id="accountlist"></div>
	<div id="bottom-line">
		<button data-modal-target="#grouplist" class="mainbutton"><svg style="width:30px;height:30px;margin-right: 4px; fill: var(--text-normal);"><use xlink:href="#group"></use></svg>Manage Groups</button>
		<button data-modal-target="#accountmodal" class="mainbutton"><svg style="width:30px;height:30px;margin-right: 4px;"><use xlink:href="#heyuser"></use></svg>Create Account</button>
	</div>
	<div class="modal" id="grouplist">
		<div class="modal-header">
			<h4></h4>
			<svg class="modal-header-button" data-close-button>
				<use xlink:href="#crossmodal"></use>
			</svg>
		</div>
		<div class="modal-body" id="groupmodal"></div>
		<div style="margin-top: 8px" class="modal-footer">
			<button data-confirm-button>Add Group</button>
			<input class="footerinput" placeholder="Group Name" maxlength="18" />
		</div>
	</div>
	<div class="modal" id="accountmodal">
		<div class="modal-header">
			<h4>CREATE ACCOUNT</h4>
			<svg class="modal-header-button" data-close-button>
				<use xlink:href="#crossmodal"></use>
			</svg>
		</div>
		<div class="modal-body">
			<input class="accountinput" placeholder="Account Name" maxlength="18" />
			<input class="accountinput" placeholder="Account Token" />
		</div>
		<div class="modal-footer">
			<button data-confirm-button>Add Account</button>
		</div>
	</div>
	<div class="modal" id="updatemodal" data-updateindex>
		<div class="modal-header">
			<h4>UPDATE ACCOUNT</h4>
			<svg class="modal-header-button" data-close-button>
				<use xlink:href="#crossmodal"></use>
			</svg>
		</div>
		<div class="modal-body">
			<input class="accountinput" placeholder="Account Name" maxlength="18" />
			<input class="accountinput" placeholder="Account Token" />
		</div>
		<div class="modal-footer">
			<button data-confirm-button>Update Account</button>
		</div>
	</div>
	<div id="notification"></div>
	<div id="overlay"></div>
	<template account-template>
		<div class="accountwrapper">
			<div class="accountholder">
				<svg class="holderlogo">
					<use xlink:href="#accountlogo"></use>
				</svg>
				<div>
					<span class="Header">Username</span>
					<span time-span></span>
				</div>
				<div style="display: flex">
					<svg token class="holder-controls">
						<use xlink:href="#tokenkey"></use>
					</svg>
					<svg configure class="holder-controls">
						<use xlink:href="#configure"></use>
					</svg>
					<svg delete class="holder-controls">
						<use xlink:href="#cross"></use>
					</svg>
				</div>
			</div>
		</div>
	</template>
	<template group-template>
		<div class="groupholder">
			<div style="pointer-events: none;">
				<span class="Header">Group Name</span>
				<span total-account></span>
			</div>
			<div style="display: flex; pointer-events: none; justify-content: center;">
				<svg import class="holder-controls fill">
					<use xlink:href="#import"></use>
				</svg>
				<svg export class="holder-controls fill">
					<use xlink:href="#export"></use>
				</svg>
				<svg delete class="holder-controls">
					<use xlink:href="#cross"></use>
				</svg>
			</div>
		</div>
	</template>
	<script src="popup.js"></script>
</body>
</html>